home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 1
/
SPACE - Library 1 - Volume 1.iso
/
utilitys
/
43
/
psf2pm.bas
< prev
next >
Wrap
BASIC Source File
|
1987-02-12
|
1KB
|
25 lines
10 fullw 2:clearw 2:gotoxy 15,0:close
20 dh$=chr$(11)+chr$(52)+chr$(0)+chr$(88):df$=chr$(0)+chr$(0)
30 ? "PSF-PRINTMASTER converter by TCB":?
40 ? "PRINTMASTER library:";:input outlib$:?:?
50 outsdr$=outlib$+".sdr":outshp$=outlib$+".shp"
60 open "R",#3,outsdr$,16
70 field #3,16 as outgrname$
80 open "R",#4,outshp$,578
90 field #4,4 as h$,128 as o1$,128 as o2$,128 as o3$,128 as o4$,60 as o5$, 2 as f$
100 outcntr=lof(3)
110 ? "PSF file:";:input inlib$:l=len(inlib$):if l=0 then close:end
120 open "R",#1,inlib$,572
130 field #1,128 as i1$,128 as i2$,128 as i3$,128 as i4$,60 as i5$
140 get #1,1
150 ? "Graphic name:";:input grname$:l=len(grname$):if l=0 then 150
160 if l>15 then grname$=left$(grname$,15)
170 grname$=grname$+string$(15,chr$(0))
180 lset outgrname$=grname$
190 outcntr=outcntr+1:put #3,outcntr
200 lset h$=dh$:lset f$=df$
210 lset o1$=i1$:lset o2$=i2$:lset o3$=i3$:lset o4$=i4$:lset o5$=i5$
220 put #4,outcntr
230 close #1
240 goto 110
əəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəə